package com.example.bms.serviceimpl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.bms.mapper.AnswerMapper;
import com.example.bms.service.AnswerService;
import com.example.bms.vo.AnswerVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * @apiNote 查询所有的题库
 * @author 牛煜翔
 * @email 2837136899@qq.com
 * @since 1.0.0
 */
@Service
@Transactional
public class AnswerServiceImpl implements AnswerService {

    @Autowired
    private AnswerMapper answerMapper;


    /**
     * @apiNote 查询所有的题库
     * @param page 页数
     * @author 牛煜翔
     * @email 2837136899@qq.com
     * @return IPage<AnswerVO>
     * @since 1.0.0
     */
    @Override
    public IPage<AnswerVO> findAll(Page<AnswerVO> page) {

        return answerMapper.findAll(page);
    }
}
